package com.github.admin.edu.oauth.server.api.hystris;

import com.github.admin.edu.oauth.server.api.service.ServiceUserRoleManagerApi;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * Created by IntelliJ IDEA.
 * user:wangj
 * date:2018/8/12
 * Time: 19:13
 */
@Component
public class ServiceUserRoleManagerHystris implements FallbackFactory<ServiceUserRoleManagerApi> {
    @Override
    public ServiceUserRoleManagerApi create(Throwable cause) {
        return new ServiceUserRoleManagerApi() {
            @Override
            public String getEntity(Long id) {
                return null;
            }

            @Override
            public String saveOrUpdate(String jsonEntity) {
                return null;
            }

            @Override
            public String getAllByPager(String title, Integer current, Integer rows, String order, String fileId) {
                return null;
            }

            @Override
            public String getALLByPager(String jsonEntity) {
                return null;
            }

            @Override
            public String getAllEntity(String title, String order, String fileId) {
                return null;
            }

            @Override
            public String deleteAll(String ids) {
                return null;
            }

            @Override
            public String getUserRole(String userId, Integer roleId) {
                return null;
            }
        };
    }
}
